package team.jaman.autosell.service;

import team.jaman.autosell.entity.Logger;
import team.jaman.autosell.entity.Manager;
import team.jaman.autosell.entity.Product;
import team.jaman.autosell.tools.CommonData;
import team.jaman.autosell.tools.PageData;
/**
 * 商品业务层
 * @author Administrator
 *
 */
public interface ProductService {
	/**
     * 模糊查询
     * @param example
     * @return
     */
    public PageData<Product> selectByExample(int page, int limit, String keyword);
    
    /**
     * 根据商品编号修改
     * @param product 商品类
     * @return
     */
    public CommonData updateProductById(Product product,Manager manager,Logger logger);
    
    /**
     * 根据商品编号删除
     * @param productId
     * @return
     */
    public CommonData deleteProductById(Integer productId,Manager manager,Logger logger);
    
    /**
     * 添加商品
     * @param product 商品类
     * @return
     */
    public CommonData addProduct(Product product,Manager manager,Logger logger);
}
